/*
 * Copyright @ 2020-2021 ­ïwb£¨Denvie£© All rights reserved.
 */

package cn.denvie.springboot.mybatis.user.controller;

import cn.denvie.springboot.mybatis.common.BaseController;
import cn.denvie.springboot.mybatis.user.domain.entity.User;
import cn.denvie.springboot.mybatis.user.service.UserService;
import com.baomidou.mybatisplus.extension.service.IService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 用户Controller
 * 
 * @author Denvie
 * @date 2021/7/03
 * @since 1.0.0
 */
@RestController
@RequestMapping("/user")
@Api(tags = "用户管理")
public class UserController extends BaseController<User> {
    @Autowired
    private UserService userService;

    @RequestMapping("/list")
    public List<User> list() {
        return userService.list();
    }

    @Override
    protected IService<User> getBaseService() {
        return this.userService;
    }
}